package com.example.demo.client.evt.cssmqry.resource;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author linxiao
 * @date 2019/12/18 17:28
 */
@ApiModel(description = "查询用户资源权限-入参")
public class QryResPermissionEvt implements Serializable {
    private static final long serialVersionUID = -1296883566838713029L;
    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "loginName can not be blank.")
    private String loginName;
    @ApiModelProperty(value = "资源",notes = "不传则查询所有的资源权限")
    @NotEmpty
    private List<String> resourceTypeList;

    @Override
    public String toString() {
        return "QryResPermissionEvt{" +
            "loginName='" + loginName + '\'' +
            ", resourceTypeList=" + resourceTypeList +
            '}';
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public List<String> getResourceTypeList() {
        return resourceTypeList;
    }

    public void setResourceTypeList(List<String> resourceTypeList) {
        this.resourceTypeList = resourceTypeList;
    }
}
